Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: optimize comments of the ParentSelector config #927

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Conversation

gaius-qi
Copy link
Member

@gaius-qi gaius-qi commented Jan 3, 2025

Description

This pull request includes several updates and improvements to the dfdaemon.rs file in the dragonfly-client-config module. The changes primarily focus on refining the ParentSelector configuration and updating associated documentation.

Refinements to ParentSelector Configuration:

  • Added default_parent_selector_sync_interval and default_parent_selector_capacity functions to set default values for the sync interval and capacity of the parent selector.
  • Removed redundant definitions of default_parent_selector_sync_interval and default_parent_selector_capacity to avoid duplication. [1] [2]

Documentation Updates:

  • Updated comments to clarify the functionality and purpose of the ParentSelector and its fields, including the sync interval and capacity. [1] [2]

Related Issue

dragonflyoss/dragonfly#3713

Motivation and Context

Screenshots (if appropriate)

@gaius-qi gaius-qi added the enhancement New feature or request label Jan 3, 2025
@gaius-qi gaius-qi self-assigned this Jan 3, 2025
@gaius-qi gaius-qi requested a review from a team as a code owner January 3, 2025 09:37
Copy link

codecov bot commented Jan 3, 2025

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 34.58%. Comparing base (3d91c09) to head (46ca0f9).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
dragonfly-client-config/src/dfdaemon.rs 0.00% 6 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #927   +/-   ##
=======================================
  Coverage   34.58%   34.58%           
=======================================
  Files          60       60           
  Lines        9308     9308           
=======================================
  Hits         3219     3219           
  Misses       6089     6089           
Files with missing lines Coverage Δ
dragonfly-client-config/src/dfdaemon.rs 48.65% <0.00%> (ø)

Copy link
Member

@fcgxz2003 fcgxz2003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@chlins chlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chlins chlins merged commit e6849b0 into main Jan 3, 2025
6 checks passed
@chlins chlins deleted the feature/config branch January 3, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants